- content_for :meta do
  %meta{:name => "Description", :content => "Jetty Rae's Blog Post: " + @blog_post.title}
  %meta{:name => "Abstract", :content => "Jetty Rae's Blog post: "  + @blog_post.title}
  %meta{:name => "Keywords", :content => "blog posts, jetty rae, music, indie, folk, acoustic"}
- content_for :title do
  = "- my blog post: "  + @blog_post.title
- content_for :page_description do
  %p
    On this page you'll be able to view Jetty Rae's blog post entitled
    = @blog_post.title
%table.show_header_info
  %tr
    %td.location
      %h1.show_location= @blog_post.title
    %td.date
      %h2.show_date= @blog_post.created_at.strftime("%B %o, %Y at %I:%M %p")
%table.blog_post
  %tr
    %td.blog_post
      = @blog_post.text
%hr
%a{:name => "comments"}
- unless @blog_post.comments.empty?
  %div.heading
    %img.heading{:src => "/images/headings/comments.jpg", :title => "Comments", :alt => "Comments"}
  %ol.comment_list
    - @blog_post.comments.each do |comment|
      %li.comment
        - if logged_in? && current_user.is_admin?
          %div.delete_comment
            - form_for comment, comments_url, :html => {:method => :delete} do |form|
              = submit_tag "delete"
        %a.comment_user{:href => user_url(comment.user)}= comment.user.login
        says:
        %p.comment_date= comment.created_at.strftime("%B %o at %I:%M %p")
        %p.comment_text= comment.text
%a{:name => "newcomment"}
- if logged_in?
  %table.new_comment
    - form_for @comment do |form|
      %tr
        %td= error_messages_for :comment
      %tr
        %td
          %input{:value => @blog_post.id, :name => "comment[blog_post_id]", :type => "hidden"}
          = form.text_area :text, :class => "comment_entry"
      %tr  
        %td.submit= submit_tag 'add comment'
- else
  %p.new_comment
    = "Have something to say about \"" + @blog_post.title + "?\""
    %a{:href => login_url, :title => "Login to jetty rae's website"}Login
    or
    %a{:href => signup_url, :title => "Sign up on jetty rae's website"}Signup